package contactbook.dao;

import java.util.List;

import javax.persistence.EntityManager;

import contactbook.model.Contact;

public interface ContactDAOInterface {
	
	public static String JNDI = "ContactBookEar/ContactDAO/local";

	public Contact addContact(Contact contact);
	public void delete(int contactId);
	
	public Contact findById(int contactId);
	public List<Contact> findByName(int ownerId, String firstName, String lastName);
	
	public List<Contact> getContactsWithoutGroup(int ownerId);
	
	public void update(Contact contact);
	
	/* Change EntityManager : for business layer tests */
	public void setEntityManager(EntityManager em);
}
